package com.youkeyi.ddy.cloud.common.api.basic.pub.organization.dto;

import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * PublicOrganizationTreeItemCloudDto
 *
 * @Author liuxiawang
 * @Date 2024/2/20 5:55 PM
 * @Location shenzhen.china
 */
@Data
public class PublicOrganizationTreeItemCloudDto extends ResponseContent {

    public PublicOrganizationTreeItemCloudDto() {
    }

    public PublicOrganizationTreeItemCloudDto(boolean success, String message) {
        super(success, message);
    }

    private String organizationPrimaryKey;

    /**
     * 主体key
     */
    private String corpKey;

    /**
     * 组织名称
     */
    private String name;

    /**
     * 组织code
     */
    private String orgCode;

    /**
     * 组织级别
     */
    private Integer level;

    /**
     * 组织类型
     */
    private Integer type;

    /**
     * 父级组织Key
     */
    private String parentKey;

    /**
     * 组织层级路径
     */
    private String path;

    private List<PublicOrganizationTreeItemCloudDto> orgItems = new ArrayList<>();
}
